package Olivia.olivia3d.model.ms3d
{
	public class MsMaterial
	{
//		typedef struct
//		{
//			char            name[32];                           //
//			float           ambient[4];                         //
//			float           diffuse[4];                         //
//			float           specular[4];                        //
//			float           emissive[4];                        //
//			float           shininess;                          // 0.0f - 128.0f
//			float           transparency;                       // 0.0f - 1.0f
//			char            mode;                               // 0, 1, 2 is unused now
//			char            texture[128];                        // texture.bmp
//			char            alphamap[128];                       // alpha.bmp
//		} ms3d_material_t;
		public var name:String;
		public static const name_length:int = 32;
		public var ambient:Array;
		public var diffuse:Array;
		public var specular:Array;
		public var emissive:Array;
		public var shininess:Number;
		public var transparency:Number;
		public var mode:int;
		public var texture:String;
		public static const texture_length:int = 128;
		public var alphamap:String;
		public static const alphamap_length:int = 128;
		
		public function MsMaterial(tn:String,ta:Array,td:Array,ts:Array,te:Array,tsh:Number,tt:Number,tm:int,ttex:String,tal:String)
		{
			name = tn;
			ambient = ta;
			diffuse = td;
			specular = ts;
			emissive = te;
			shininess = tsh;
			transparency = tt;
			mode = tm;
			texture = ttex;
			alphamap = tal;
		}
	}
}